<?php

namespace Modules\System\Http\Controllers\Admin;

use Illuminate\Contracts\Support\Renderable;
use Illuminate\Http\Request;
use Modules\System\Models\ApiInfoModel;

class ApiInfo extends Base
{

    /**
     * 依赖注入
     */
    public function __construct(Request $request){

        //自行配制
        $this->models = new ApiInfoModel();
        parent::__construct();

    }

    /**
     * 所有请求API记录
     * @return Renderable
     * http://l.com/system/ApiInfo/show
     */
    public function show(Request $request){

        $i = $request->input();
        if(empty($i['id'])){
            echo "没有id";
            exit;
        }
        $data['apiInfo'] = ApiInfoModel::where("id",$i['id'])->first();
        return view('system::ApiInfo.index',$data);

    }


}
